package com.yunze.web.controller.newcard.card;

import com.yunze.common.core.controller.BaseController;
import com.yunze.common.core.domain.AjaxResult;
import com.yunze.system.service.newcard.card.YzNewCardService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/sendSms")
public class YzNewCardSendSmsController extends BaseController {
    /***
     * 短信下发接口
     */
    @Resource
    private YzNewCardService yzNewCardService;

    @PostMapping("/sendToDevice")
    public AjaxResult sendToDevice(@RequestBody String params)
    {
       return yzNewCardService.sendToDevice(params);
    }
    @PostMapping("/queryReceiveSms")
    public AjaxResult queryReceiveSms(@RequestBody String params)
    {
        return yzNewCardService.queryReceiveSms(params);
    }
}
